package com.itcast.n7_字符串常量池;

import java.util.Scanner;

/**
 * @program: jvm
 * @description:
 * @author: flyduck
 * @create: 2024-09-23 11:39
 **/
public class Test01_演示intern最基础的用法 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input1 = scanner.next().intern();//itheima
        String input2 = scanner.next().intern();//itheima

        System.out.println(input1 == input2);//true
    }
}
